import { Graph, Node } from '@antv/x6'
import { ports } from '../../../customNode/options/ports'

Graph.registerNode('TestNode', {
  inherit: 'rect',
  label: 'TestNode',
  width: 100,
  height: 40,
  attrs: {
    body: {
      fill: '#fff',
      stroke: 'red',
    },
    label: {
      textAlign: 'center',
      textBaseline: 'middle',
    },
  },
  ports: ports,
})

export const TestNode: Node.Metadata = {
  shape: 'TestNode',
}
